// constantRoutes 将静态路由导入
import { constantRoutes } from '@/router'
export default {
  state() {
    return {
      // 默认保持同步
      routesList: constantRoutes
    }
  },
  mutations: {
    // 将当前用户能访问的路由的值赋值给routesList
    // 将能访问的路由和侧边栏显示
    setRoutesList(state, value) {
      state.routesList = value
    }
  },
  actions: {},
  getters: {},
  namespaced: true
}
